package com.bw.shopping.mvvm.model;

import android.app.ApplicationErrorReport;

import com.bw.mvvm_comom.entity.BaseEntity;
import com.bw.mvvm_comom.model.BaseModel;
import com.bw.mvvm_comom.network.HttpEnum;
import com.bw.mvvm_comom.network.HttpFactory;
import com.bw.shopping.mvvm.model.api.Api;

import java.util.HashMap;

import io.reactivex.Observable;

public class CarModel extends BaseModel {
    public Observable<BaseEntity> requsetCarModel(HashMap<String,Object> map){
        return changeFunc(HttpFactory.create(HttpEnum.TokenSign)
        .getRetrofit()
        .create(Api.class)
        .requestCarList(createBody(map)));

    }
}
